package com.example.warehouse.service;

import com.example.warehouse.dto.AssignAuthDto;
import com.example.warehouse.entity.Role;
import com.example.warehouse.page.Page1;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
public interface RoleService {


    public List<Role> getAllRole();


    List<Role> QueryID(Integer userId);



    Page1 QueryRolePage(Page1 page1,Role role);

    boolean DeleteById(Integer roleId);

    boolean updateRoleState(Role role);

    boolean updateRoleById(Role role);


    void addRole(Role role);


    List<Integer> FindAuthByroleId(Integer roleId);


    boolean deleteAuthByRoleId(Integer roleId);

    void AddAuthByRoled(AssignAuthDto assignAuthDto);
}
